package com.synclovis.bean;

import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.PrimaryKey;
import com.litesuits.orm.db.annotation.Table;
import com.litesuits.orm.db.enums.AssignType;

/**
 * Created by dylan on 2016/1/30.
 */

@Table("step")
public class StepData {

    // 指定自增，每个对象需要有一个主键
    @PrimaryKey(AssignType.AUTO_INCREMENT)
    private int id;

    @Column("today")
    private String today;
    @Column("step")
    private String step;
    @Column("deviceStep")
    private String deviceStep;
    @Column("beforeResetSteCount")
    private int beforeResetSteCount;
    @Column("isReset")
    private boolean isReset;

    public int getId() {
        return id;
    }

    public int getBeforeResetSteCount() {
        return beforeResetSteCount;
    }

    public void setBeforeResetSteCount(int beforeResetSteCount) {
        this.beforeResetSteCount = beforeResetSteCount;
    }

    public String getDeviceStep() {
        return deviceStep;
    }

    public void setDeviceStep(String deviceStep) {
        this.deviceStep = deviceStep;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getToday() {
        return today;
    }

    public void setToday(String today) {
        this.today = today;
    }

    public String getStep() {
        return step;
    }

    public void setStep(String step) {
        this.step = step;
    }

    public boolean isReset() {
        return isReset;
    }

    public void setReset(boolean reset) {
        isReset = reset;
    }

    @Override
    public String toString() {
        return "StepData{" +
                "id=" + id +
                ", today='" + today + '\'' +
                ", step='" + step + '\'' +
                ", deviceStep='" + deviceStep + '\'' +
                ", beforeResetSteCount='" + beforeResetSteCount + '\'' +
                ", isReset=" + isReset +
                '}';
    }
}
